<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
<script type="text/javascript" src="../static/js/jquery-1.11.1.js" ></script>
<script type="text/javascript" src="../static/js/jquery.qrcode.js" ></script>
<script type="text/javascript" src="../static/js/qrcode.js" ></script>
<script type="text/javascript" src="../static/js/utf.js" ></script>
<p>Render in table</p>
<div id="qrcodeTable"></div>
<p>Render in canvas</p>
<div id="qrcodeCanvas"></div>
<script>
    jQuery('#qrcodeTable').qrcode({
        render    : "table",                <!--二维码生成方式 -->
        text    : "https://gitee.com/coczzz" , <!-- 二维码内容  -->
        width : "200",               //二维码的宽度
        height : "200",
        src: 'we.jpg'
    });
    jQuery('#qrcodeCanvas').qrcode({
        render    : "canvas",
        text    : "https://gitee.com/coczzz",
        width : "200",               //二维码的宽度
        height : "200",              //二维码的高度
        background : "#ffffff",       //二维码的后景色
        foreground : "#000000",        //二维码的前景色
        src: 'we.jpg'                  //二维码中间的图片
    });
</script>
</body>
</html>
